﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Group/1/ManagePage.Master"
    Inherits="System.Web.Mvc.ViewPage<SportsGroupDto>" %>

<%@ Import Namespace="Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/Scripts/swfobject.js"></script>
    <script type="text/javascript" src="/Scripts/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#fileUpload').uploadify({
                'swf': '/Content/Style/uploadify.swf',
                'uploader': '/Public/TempUpload',
                'auto': true,
                'fileExt': '*.jpg;*.gif;*.png',
                'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
                'queueSizeLimit': 5,
                'buttonText': '<a href=\"#\">　+添加照片</a>',
                'itemTemplate': '<div class=\"uploadpic_item\"><a class=\"delete\" href=\"#\"></a><div class=\"pic\"><img src=\"/TempImage/${fileName}\" /></div><div class=\"pic_txt\"><input name=\"\" type=\"text\" value=\"${fileName}\" /></div></div>',
                'removeCompleted': false,
                'onUploadComplete': function (file) {
                    $(".main_wrapper").append("<input type=\"hidden\" name=\"imgNames\" id=\"hid" + file.id + "\" value=\"" + file.name + "\" />");
                }
            });
        });
    </script>
    <div id="content">
        <div class="w_980">
            <div class="header_group_name yahei">
                <a href="#">
                    <%= Model.GroupName %></a></div>
            <div class="group_title">
                <div class="group_level_info">
                    <a href="#" class="group_level"></a>
                    <div class="gourp_grows_bar">
                        <i style="width: 50px;"></i><span>369857</span></div>
                </div>
                <div class="group_sort">
                    战队排名： 昨日 20<i class="pipe">|</i>周 26<i class="pipe">|</i>月 35</div>
                <div class="group_info_mini">
                    <div class="group_avatar">
                        <img src="<%=ImageLoadHelper.GetNarrowImageUrl(Model.GroupLogo)%>" width="110" height="110"
                            alt="" /></div>
                    <div class="group_state">
                        <a href="#">132</a> 讨论<i class="pipe">|</i><a href="#">87</a> 照片<i class="pipe">|</i><a
                            href="#">12</a> 成员</div>
                </div>
            </div>
            <div class="group_nav yahei">
                <%
                    Html.RenderAction("Menu", "Group",
                                      new
                                          {
                                              templateId = Model.GroupTemplateId,
                                              code = Model.GroupCode,
                                              current = "Photo"
                                          });%>
            </div>
            <% using (Html.BeginForm("UpdateGroupPhoto", "GroupPhoto", FormMethod.Post, new { id = "PhotoForm" }))
               { %>
            <div class="main_wrapper">
                <div class="mod_box">
                    <div class="upload_photo">
                        <div class="title yahei">
                            <h2>
                                上传新照片</h2>
                            <div class="more">
                                <a href="#">返回相册</a></div>
                        </div>
                        <div class="upload_photo_form">
                            <div class="item alumb_item">
                                <span>选择专辑：</span><p>
                                    <select name="alumb">
                                        <option>选择专辑</option>
                                        <option>成员靓照</option>
                                        <option>会展活动专辑</option>
                                    </select></p>
                                <p>
                                    <a href="#">+创建专辑</a></p>
                            </div>
                            <div class="pic_editer">
                                <input id="fileUpload" type="file" name="Filedata" />
                                <div class="upload_btn"><a href="javascript:$('#PhotoForm').submit();" class="finish_upload">完成上传</a></div>
                            </div>
                            <div class="item other_way_item">
                                上传遇到问题？试试<a href="#">普通上传</a></div>
                        </div>
                    </div>
                </div>
            </div>
            <%= Html.Hidden("Code", ViewData["Code"])%>
            <% } %>
        </div>
    </div>
</asp:Content>
